# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>

pkgname=chrpath
pkgver=0.16
pkgrel=4
pkgdesc="Change or delete the rpath or runpath in ELF files"
arch=('loong64' 'x86_64')
url="https://directory.fsf.org/project/chrpath/"
license=('GPL2')
depends=('glibc')
source=("https://deb.debian.org/debian/pool/main/c/chrpath/chrpath_$pkgver.orig.tar.gz")
md5sums=('2bf8d1d1ee345fc8a7915576f5649982')
sha256sums=('bb0d4c54bac2990e1bdf8132f2c9477ae752859d523e141e72b3b11a12c26e7b')

prepare() {
  cd "${srcdir}"/$pkgname-$pkgver
#  rm -f config.guess
#  aclocal
#  libtoolize
#  automake --add-missing
#  autoconf
}

build() {
  cd "${srcdir}"/$pkgname-$pkgver
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver
  make DESTDIR="${pkgdir}" docdir=/usr/share/doc/chrpath install
}
